Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced mem::uninitialized with mem::MaybeUninit #1

Merged
merged 2 commits into from
Jul 25, 2020

Conversation

geky
Copy link

@geky geky commented Jul 24, 2020

This issue captures the problem pretty well: rust-lang/rust#73573. Change implemented here: rust-lang/rust#66059.

This was causing FunctionType::get_params to panic.

I've replaced mem::uninitialized with what should be the appropriate mem::MaybeUninit/assume_init pairs.

Oh, and I also changed try! for ? since rustc was complaining about the deprecated macro.

Open to feedback.

geky added 2 commits July 23, 2020 19:09
The exact behavior of mem::uninitialized has been changed to cause
panics, which causes problems for dependent libraries.
@Others
Copy link
Owner

Others commented Jul 25, 2020

You're amazing! Thank you for this fix--literally just ran into this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants